package com.epam.Accessories;


public abstract class Accessories {

    public Accessories(String name, double price, AccessoriesQuality quality){
        this.name = name;
        this.price = price;
        this.quality = quality;
    }

    public enum AccessoriesQuality {HIGHT, MEDIUM, LOW}

    private String name;
    private AccessoriesQuality quality;
    private double price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        if (name != null){
        this.name = name;
        }
    }

    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        if(price > 0){
        this.price = price;
        }
    }

    public AccessoriesQuality getQuality() {
        return quality;
    }
    public void setQuality(AccessoriesQuality quality) {
        this.quality = quality;
    }

}
